package com.tansun.easycare.rule.rulegroup.service;

import java.util.List;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.rulegroup.entity.RuleGroup;
import com.tansun.easycare.rule.rulegroup.entity.RuleGroupRef;
import com.tansun.easycare.rule.rulemange.entity.RuleManage;

/**
 * 规则集规则关联关系Service
 * @author lph
 * @version 2019-11-19
 */
public interface RuleGroupRefService extends RuleBaseService<RuleGroupRef> {
    List<RuleGroup> findRuleGroupList(RuleGroup condition);
    
	public List<RuleGroup> findRefRuleManage(RuleGroup condition);
    /**
     * 修改顺序
     */
    void shiftSort(RuleManage ruleManage, String id1, String id2, String shiftType) throws BizException;

    /**
     * 根据ruleId获取到对应的manageId  ljt 2019-12-20
     * @param ruleId
     * @return
     */
    public List<String> findManageIdByRuleId(String ruleId);
    
	public List<String> findManageIdByRuleIds(List<String> ids);
    
    /**
     * 保存规则
     */
    void saveOrUpdate(RuleGroupRef ruleGroupRef) throws BizException;
    
    void deleteByManageID(RuleGroupRef ruleGroupRef) throws BizException;
    
    void deleteByMutilVersion(RuleManage ruleManage, List<String> versions);

}